<?php

class McCube_Exception_Form404Field extends McCube_Exception{

    protected $_name = '';
    protected $_formName = '';

    /** */
    public function __construct($formName, $name){
        $this->_name = $name;
        $this->_formName = $formName;

        parent::__construct(
            'Field '.$name
            .' in Form ['.$formName.'] not found !'
        );
    }

    /** */
    public function renderHTML(){
        return ''
            .'Field '
            .' [ <em style=";color:green;">'.$this->_name.'</em> ]'
            .' in Form [ <em style=";color:green;">'.$this->_formName.'</em> ]  not found !'
        ;
    }
}